//
//  BQWebViewVC.m
//  BeeQuick
//
//  Created by Vivitickey on 2017/5/8.
//  Copyright © 2017年 test. All rights reserved.
//

#import "BQWebViewVC.h"
#import "BQTabBarController.h"
@interface BQWebViewVC ()

@end

@implementation BQWebViewVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIImageView *imageView = [[UIImageView alloc]init];
    
    [self.view addSubview:imageView];
    
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.offset(0);
    }];
    
    [imageView sd_setImageWithURL:[NSURL URLWithString:@"http://img01.bqstatic.com/upload/activity/2016011111271995.jpg"]];
    
    [self performSelector:@selector(changeView) withObject:self afterDelay:3];
    
}

//切换到下一个界面
- (void)changeView {
    UIWindow *window = self.view.window;
    BQTabBarController *main = [[BQTabBarController alloc] init];
    
    //添加一个缩放效果
    main.view.transform = CGAffineTransformMakeScale(0.2, 0.2);
    [UIView animateWithDuration:0.1 animations:^{
        main.view.transform = CGAffineTransformIdentity;
    }];
    
    window.rootViewController = main;
}

@end
